package basic;

public class Simple {
    private int a;
    public boolean is = true;
    public String str2 = "abc1111";

    public String str3 = "abc"+"1111";
    public String str4 = new String("abc1111");
    public String str5 = new String("abc11112");
    public static void staticTest(){

    }
    public Simple(){}

    public Simple(int a) {
        this.a = a;
    }

    public void test1() {
        System.out.println(this.a);
        int a = 100;
        int b = 100;
        int c = 100000000;
        int d = 100000000;
        int e = a+b;
        int f = c+d;
    }
    public long test(int a,long b,long c,int d){
        int i1 = a;
        int i2 = i1+d;
        long l1 = c;
        long l2 = l1+b;
        System.out.println(i2);
        return b+c;
    }

    public static void main(String[] args) {
        String a4 = "abc";
        String a2 = new String("abc");
        String a3 = a2.intern();
        String a1 = new String("abc");
        a1.intern();
        System.out.println(a3==a2);
        System.out.println(a3==a4);
        Simple.staticTest();
        Simple simple = new Simple();
        Simple simple1 = new Simple(1);
    }
}
